public class Main {
    public static void main(String[] args) {
        VehiclePowerAdapter adapter = new VehiclePowerAdapter(48); // 模拟车辆需要48V电压
        AC48V begin=new AC48V();
        System.out.println("原始电压:"+begin.outPutVoltage()+'V');
        System.out.println("适配之后:" + adapter.outPut6V()+'V');
        System.out.println("适配之后:" + adapter.outPut12()+'V');
        System.out.println("适配之后:" + adapter.outPut24()+'V');
    }
}